package com.xxl.job.executor.service.jobhandler;

import com.xxl.job.core.handler.annotation.XxlJob;
import com.xxl.job.executor.service.MyXxlServiceImpl;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @author chuanbai
 */
@Component
public class MyXxlJob {

    @Resource
    private MyXxlServiceImpl myXxlService;

    @XxlJob("myXxlJob1")
    public void myXxlJob1(){
        myXxlService.MyXxlService1();
        System.out.println("-------myXxlJob1-------");
    }
}
